#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QString>

QT_BEGIN_NAMESPACE
namespace Ui
{
    class MainWindow;
}
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();


    QStringList GetEnableCommPort();
    QByteArray serialPortRead(int ms);
    void serialPort_init(QString com);
    void serialPort_readAll();

    void ShowImage(unsigned char *img_buff, int w, int h);
private slots:
    void serialPort_readyRead();

    void on_pushButtonTestSqlite_clicked();

    void on_pushButtonTestShowImg_clicked();

    void on_pushButton_com_getList_clicked();

    void on_pushButton_com_open_clicked();

    void on_pushButton_com_send_clicked();

    void on_pushButton_com_close_clicked();

    void on_pushButton_uvc_on_clicked();

    void on_pushButton_uvc_snap_clicked();

    void on_pushButton_uvc_off_clicked();

    void on_pushButton_file_read_clicked();

    void on_pushButton_file_write_clicked();

    void on_pushButton_file_creatDir_clicked();

    void on_pushButton_file_getDir_clicked();

    void on_pushButton_file_list_sort_clicked();

private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
